package com.yql.service;

import com.github.pagehelper.PageInfo;
import com.yql.entity.Goods;
import com.yql.entity.Order;
import com.yql.entity.OrderVO;
import com.yql.entity.User;

import java.util.List;

public interface OrderService {
    PageInfo<Order> listOrder(User user, OrderVO orderVO, Integer pageNum, Integer pageSize);

    Order listOrderByOrderId(Long orderId);

    List<Goods> listGoodsByOrderId(Long orderId);

    void addOrder(Order order);
    //删除订单
    Integer deleteById(Long id);
    //删除中间表
    Integer deleteMiddle(Long orderId);
}
